The NativePathNameToFSSpec function, given a native pathname, returns an FSSpec for that file.
OSErr NativePathNameToFSSpec(char *inName, FSSpec *outFile, long flags);
Given a C string pathname from the operating system, this routine updates FSSpec theFile to describe the same file. There are no flags currently defined, so you should pass 0. If the file does not currently exist, the error fnfErr is returned, but the resulting FSSpec is still valid for creating the file.
| Previous | Chapter Contents | Chapter Top |